package com.muqi.app.qlearn.modles;

import java.io.Serializable;
import java.util.List;

import org.json.JSONObject;

import com.google.gson.Gson;

public class UserInfo implements Serializable {
	/***/
	private static final long serialVersionUID = 1L;
	/** 用户id */
	public String id;
	/**  */
	public String id_code;
	/**  */
	public String user_type;
	/** 环信用户名 */
	public String im_user_id;
	/** token */
	public String token;
	/** 姓名 */
	public String name;
	/** 昵称 */
	public String nickname;
	/** 头像 */
	public AvatarInfo avatarInfo;
	/**  */
	public List<ChildInfo> parentOwnStudent;
	/** 手机 */
	public String mobile;
	
	public String type;
	public String expiry_end_date;
	
	public String fans;
	public String follow;
	public String multiple_total;
	public String peibancount;
	
	public String sex;
	public String birthday;
   
	public static UserInfo fromJson(JSONObject json) {
		if(json != null){
            return new Gson().fromJson(json.toString(), UserInfo.class);
        }
		return null;
	}
}
